import type { Plugin } from 'vue'
import { use } from 'echarts/core'
import { CanvasRenderer } from 'echarts/renderers'
import { BarChart, GaugeChart /*, LineChart,*/ /*PieChart, ScatterChart*/ } from 'echarts/charts'

import {
  // LegendComponent,
  GridComponent,
  // PolarComponent,
  TooltipComponent,
  // MarkPointComponent,
  MarkLineComponent,
  DataZoomSliderComponent,
  DataZoomInsideComponent
  // GraphicComponent,
  // MarkAreaComponent
} from 'echarts/components'

export default {
  install() {
    use([
      CanvasRenderer,
      // MarkPointComponent,
      MarkLineComponent,
      BarChart,
      // LineChart,
      // PieChart,
      // ScatterChart,
      GaugeChart,

      GridComponent,
      // LegendComponent,
      // PolarComponent,
      TooltipComponent,
      DataZoomInsideComponent,
      DataZoomSliderComponent
      // GraphicComponent,
      // MarkAreaComponent
    ])
  }
} as Plugin
